import globalConfig from "@/utils/config.js";
import { request } from "@/utils/http.js";

const baseUrl = globalConfig.microUrl;
const modules = "/logistics";

export default {
  // 获取枚举列表
  getTakeSubmitDeliverInfo: (data) => {
    return request({
      url: `${baseUrl}/logistics/deliver/getTakeSubmitDeliverInfo`,
      method: "GET",
      data
    });
  },
  deliverPage: (data) => {
    return request({
      url: `${baseUrl}/logistics/deliver/page`,
      method: "GET",
      data
    });
  },
  // 发货单详情
  deliverGet: (data) => {
    return request({
      url: `${baseUrl}/logistics/deliver/get`,
      method: "GET",
      data
    });
  },
  // 获取订单的发货信息
  getDeliverInfosBySaleNo: (data) => {
    return request({
      url: `${baseUrl}/logistics/deliver/getDeliverInfosBySaleNo`,
      method: "GET",
      data
    });
  },
  // 发货单详情
  getSignInfo: (data) => {
    return request({
      url: `${baseUrl}/logistics/deliver/getSignInfo`,
      method: "GET",
      data
    });
  },
  // 发货单详情
  confirmSign: (data) => {
    return request({
      url: `${baseUrl}/logistics/deliver/confirmSign`,
      method: "GET",
      data
    });
  }
};
